<%@ page import="com.bean.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

</head>
<body>
<!-- 左边信息 -->
<div class="leftcontent">
    <div class="data_list">
        <div class="data_list_title"><span class="glyphicon glyphicon-edit"></span>&nbsp;博主信息 </div>
        <div class="container-fluid">
            <div class="row" style="padding-top: 5px;">
                <div class="content">
                    <form class="form-horizontal" method="post" action="user">
                        <div class="form-group">
                            <%
                                User bozhu= (User) session.getAttribute("blogger");
                            %>
                            <%-- 设置隐藏域存放用户行为actionName --%>
                            <input type="hidden" name="actionName" value="updateUser">
                            <div class="col-sm-5">
                                <img id="img" name="img" width="80px" height="80px" src="/update?actionName=userHead&imageName=<%=bozhu.getHead()%>">
                            </div>

                            <div class="col-sm-3">
                                <td style="font-size: 15px;text-align:left">
                                    博主昵称：
                                    <a style="font-size: 20px;font-family: 黑体;color:#555659;font-weight: bold;text-align: center">
                                        <%=bozhu.getNick()%>
                                    </a>
                                </td>
                            </div>

                            <div class="col-sm-4">
                                <td style="font-size: 15px;text-align:left">
                                    个性签名：
                                    <a style="font-size: 15px;font-family: 黑体;font-weight: bold;color:#555659;text-align:center">
                                        <%=bozhu.getMood()%>
                                    </a>
                                </td>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="recommend">
        <div class="recommend_title"><span class="glyphicon glyphicon-edit"></span>&nbsp;文章推荐 </div>
        <div class="recommend_content">
            <div class="row" style="padding-top: 5px;">
                <div class="con">
                    <form class="fo" method="post" action="user" >
                        <div class="form-group_recommend">
                            <div class="recommend_writer">
                                <c:forEach items="${maxList}" var="maxList">
                                    <tr height="35" valign="bottom">
                                        <td style="text-indent:25px">
                                            <a href="/Article?action=read&id=${maxList.id}">${maxList.title}</a><br/>

                                                <%-- <a href="ArticleServlet?action=read&id=3">甜狗</a>--%>
                                        </td>
                                    </tr>
                                </c:forEach>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
</body>
</html>
